import java.io.BufferedReader;
import java.io.InputStreamReader;


public class admin {
	
	//private String userName = null;
	//private int adminId = 0;
	private int location=100 ;
	private book[]bookCount= new book[location];
	private int locationId=100; 
    private book[]BookName= new book[locationId];
    boolean blAdded;
    boolean b2Added;
    int NumBooks;    
	 public boolean bookavailablity (String stBookName)
	 
	 {
		 boolean b3Added = false;
		 if(bookCount[locationId].getBookName().equalsIgnoreCase(stBookName))  
         {
         System.out.println("Book is available:"+location);
         } 		
		 else             
        	 System.out.println("Book is Not available:");
		 return b3Added;
	 }
	 

	 public boolean  addBookToShelf(String stBookName)
	 {
		
		// NumBooks++;
	     for (int i=1;i<location;i++){
	     //System.out.println(i);	         
	   //  NumBooks++;	 
		// System.out.println("book Added To Self:"+ NumBooks);
		 blAdded=true;
		 NumBooks++;
       System.out.println("book Added To Self:"+ NumBooks);       
		 break;
		}
		return blAdded;
	 }
	 
	 public boolean removeBookFromShelf (String stBookName1)
	 {
		  boolean b2Added=false;
	 	     for(int i = 0; i < NumBooks;i--) {  
             if(bookCount[i].getBookName().equalsIgnoreCase(stBookName1))  
             {
             System.out.println("Book Removed from Shelf:"+location);
             }
            // b2Added = true;
	 	     
             else             
            	 System.out.println("Book is Not available:");
             
             b2Added = true;
	 	    
 }
	 	    return b2Added ; 
}
}
